<?php
/* @var $this \yii\web\View */
/* @var $content string */
use yii\helpers\Html;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use frontend\assets\AppAsset;
AppAsset::register($this);
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
    <meta charset="<?= Yii::$app->charset ?>">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="stylesheet" type="text/css" href="/js/layui/css/layui.css" media="all" />		
	<link rel="stylesheet" type="text/css" href="/css/public.css" media="all" />
	<link rel="stylesheet" type="text/css" href="/css/iconfont/iconfont.css" media="all" />
	<link rel="stylesheet" type="text/css" href="/css/member.css">
	<script type="text/javascript" src="/js/jquery-3.4.1.min.js" ></script>
	
	<script type="text/javascript" src="/js/tools.js" ></script>
    <?= Html::csrfMetaTags() ?>
    <title><?= Html::encode($this->title) ?></title>
    <?php $this->head() ?>
</head>
<body>
<?php $this->beginBody() ?>

<div class="bg-white shadow user-header ptb15">
	<div class="layui-container">
		<div class="bui-box-align-middle">
			<div class="logo">
				<a href="/" title="融媒智投">						
					<img src="/img/images/logo-blue.png"alt="融媒智投">
				</a>
			</div>
			<div class="span1 ml30 mr30">
				<ul class="nav mean f14 text-c">
					<li><a href="/">首页</a></li>
					<li><a href="/goodslist?second_cate=2">高速广告</a></li>
					<li><a href="/goodslist?second_cate=3">市区媒体</a></li>
					<li><a href="/goodslist?second_cate=4">社区广告</a></li>
					<li><a href="/goodslist?second_cate=5">电台广播</a></li>
					<li><a href="/goodslist?second_cate=6">网络媒体</a></li>
					<li><a href="#">制作安装</a></li>
					<li><a href="#">活动场地</a></li>	
				</ul>
			</div>
			<div><a class="layui-btn layui-btn-normal layui-btn-xs ml15" href="/site/logout">退出登录</a></div>
		</div>
	</div>
</div>
<div class="user-header-info middle">
	<div class="layui-container ">
		<div class="bui-box-align-middle">
			<div class="user-img content">
				<a href="/user/info/setheadimg" title="修改头像">
					<i class="iconfont skewing">&#xe604;</i>
					<img class="headimg" src="<?php echo Yii::$app->user->identity->headimg;?>"/>
					
				</a>
			</div>
			<div class="span1 ml30">
				<div class="f18">您好，<?php echo Yii::$app->user->identity->username;?> <a class="iconfont f14" title="编辑资料" href='/user/info/set-introduce'>&#xe604;</a></div>
				<p class="mt10 item-info">
					<span> <i class="iconfont layui-bg-green">&#xe615;</i><?php echo $data['mobile']==""?"<a href='/user/info/mobilebind'>绑定手机号码</a>":$data['mobile'];?>
					</span>
				</p>
				<p class="mt10 f12 item-info">
					<span><i class="iconfont layui-bg-orange">&#xe63c;</i> 注册会员</span>
					<span class="ml20"><i class="iconfont layui-bg-blue">&#xe60d;</i> 
						<?php if ($data['identity_auth']==0) {
						echo "<a href='/user/info/identity'>未实名认证</a>";
						} elseif ($data['identity_auth']==1) {
						echo "待审核";
						} elseif ($data['identity_auth']==2) {
						echo "已认证";
						} elseif ($data['identity_auth']==3) {
						echo "未通过（".$data['operate_info']."）<a href='/user/info/identity'>重新认证</a>";
						}?>
					</span>
				</p>
			</div>
		</div>
	</div>
</div>